#pragma once
#include "bondlib.h"
////////////////////////////////////////////
// 利率债发行信息
class S_BONDLIB_EXPORT CBondAuctionInfo {
 public:
  CBondAuctionInfo();
  CBondAuctionInfo(const CBondAuctionInfo& info);
  ~CBondAuctionInfo();

 public:
  void Clear();  // 初始化数据

  void SetBondKey(const char*);
  void SetAuctionTimeStart(int);
  void SetAuctionTimeEnd(int);
  void SetPlanedAuctionAmount(double);
  void SetActualAuctionAmount(double);
  void SetWATenderRate(double);
  void SetMGTenderRate(double);
  void SetSubscriptionRatio(double);
  void SetMarginalRatio(double);

  const char* GetBondKey() const;
  int GetAuctionTimeStart() const;
  int GetAuctionTimeEnd() const;
  double GetPlanedAuctionAmount() const;
  double GetActualAuctionAmount() const;
  double GetWATenderRate() const;
  double GetMGTenderRate() const;
  double GetSubscriptionRatio() const;
  double GetMarginalRatio() const;

 private:
  char m_BondKey[34];
  int m_AuctionTimeStart;        // 招标时间起
  int m_AuctionTimeEnd;          // 招标时间止
  double m_PlanedAuctionAmount;  // 计划发行量
  double m_ActualAuctionAmount;  // 实际发行量
  double m_WATenderRate;         // 加权利率
  double m_MGTenderRate;         // 边际利率
  double m_SubscriptionRatio;    // 全场倍数
  double m_MarginalRatio;        // 边际倍数
};
